package wechat.bean.response.message.receive;

import org.dom4j.DocumentException;

import wechat.bean.response.MessageBaseBean;

/**
 * 小视频消息
 * 
 *
 */
public class ReceiveShortvideoBean extends MessageBaseBean {
	private String ThumbMediaId;
	private String MediaId;
	
	public ReceiveShortvideoBean(String str) throws DocumentException {
		super(str);
		super.setMsgType(Receive_Message_Shortvideo);
	}
	
	public ReceiveShortvideoBean(){
		super.setMsgType(Receive_Message_Shortvideo);
	}

	
	public String getThumbMediaId() {
		return ThumbMediaId;
	}

	public void setThumbMediaId(String thumbMediaId) {
		ThumbMediaId = thumbMediaId;
	}
	public String getMediaId() {
		return MediaId;
	}

	public void setMediaId(String mediaId) {
		MediaId = mediaId;
	}

	
	protected static final String Xpath_ThumbMediaId = "/xml/ThumbMediaId";
	protected static final String Xpath_MediaId = "/xml/MediaId";
	
	public void transform() throws Exception {
		super.transform();
		this.setThumbMediaId(getNodeText(Xpath_ThumbMediaId));
		this.setMediaId(getNodeText(Xpath_MediaId));
	}
	
	
//	public String buildXml() throws Exception {
//		super.buildXml();
//		super.addNode("ThumbMediaId", getThumbMediaId());
//		super.addNode("MediaId", getMediaId());
//		return parent.asXML();
//	}




}
